package com.dushan.boot.mapper;

/**
 * @Author：朗朗乾坤
 * @Package：com.dushan.boot.mapper
 * @Project：DuShanHui
 * @name：MemberExperienceRecordMapper
 * @Date：2024/1/24 18:12
 * @Filename：MemberExperienceRecordMapper
 */

import com.dushan.boot.common.pojo.PageResult;
import com.dushan.boot.domain.MemberExperienceRecordDO;
import com.dushan.boot.domain.vo.MemberExperienceRecordPageReqVO;
import com.dushan.boot.mapper.base.BaseMapperX;
import com.dushan.boot.utils.mybatis.query.LambdaQueryWrapperX;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface MemberExperienceRecordMapper extends BaseMapperX<MemberExperienceRecordDO> {

    default PageResult<MemberExperienceRecordDO> selectPage(MemberExperienceRecordPageReqVO reqVO) {
        return selectPage(reqVO,new LambdaQueryWrapperX<MemberExperienceRecordDO>().eqIfPresent(MemberExperienceRecordDO::getUserId, reqVO.getUserId()));
    }
}
